//
//  ThemeDetailCell.m
//  TravelToHelp
//
//  Created by lanou3g on 15/11/2.
//  Copyright © 2015年 冯贵宾. All rights reserved.
//

#import "ThemeDetailCell.h"

@implementation ThemeDetailCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self addSubviews];
    }
    return self;
}

- (void)addSubviews
{
    self.titleIMGView = [[UIImageView alloc] initWithFrame:CGRectMake(8, 15, kScreenWidth - 16, 160)];
    self.titleIMGView.layer.cornerRadius = 8;
    self.titleIMGView.layer.borderWidth = 1.5;
    self.titleIMGView.layer.borderColor = [UIColor clearColor].CGColor;
    self.titleIMGView.layer.masksToBounds = YES;
    [self addSubview:self.titleIMGView];
    
    self.titleTXT = [[UILabel alloc] initWithFrame:CGRectMake(8, 180, kScreenWidth - 10, 25)];
    [self addSubview:self.titleTXT];
    
    self.titleDetailTXT = [[UILabel alloc] initWithFrame:CGRectMake(8, 190, kScreenWidth - 10, 85)];
    self.titleDetailTXT.font = [UIFont systemFontOfSize:14];
    self.titleDetailTXT.numberOfLines = 0;
    
    [self addSubview:self.titleDetailTXT];
}

- (void)awakeFromNib {
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
